<?php
class UserModel extends Controller{
	public  $id;
	public $username;
	public $hoten;
	public $credit; 
	public $email;
	
	public function __construct($user){
		$this->id = $user->id;
		$this->username = $user->username;
		$this->hoten = $user->hoten;
		$this->credit = $user->tbcredit->sodu; 
		$this->email = $user->email; 
	}
}